package com.fast.linkbeanadmin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.fast.linkbeanadmin.pojo.entity.SysUserDO;
import com.fast.linkbeanadmin.pojo.vo.UserVO;
import org.springframework.security.core.userdetails.UserDetails;

/**
 * @author ruan cai yuan
 * @version 1.0
 * @fileName com.fast.linkbeanadmin.service.SysUserService
 * @description: 针对表【sys_user(用户信息表)】的数据库操作Service
 * @since 2024/7/21 下午4:52
 */
public interface SysUserService extends IService<SysUserDO> {

    /**
     * 根据用户的ID查询用户
     *
     * @param id 用户ID
     */
    UserVO queryById(Long id);

    /**
     * 根据用户的账号查询用户
     *
     * @param username 用户账号
     */
    UserDetails loadUserByUsername(String username);
}
